package com.haiya.adapter.motorcase;

public class ElectricAdapter implements Motor {
    ElectricMotor motor;

    public ElectricAdapter(ElectricMotor motor) {
        this.motor = motor;
    }

    @Override
    public void drive() {
        System.out.println("电能发动机适配中~~~~~");
        motor.electricDrive();
    }
}
